package com.wzb.consumer;

import com.wzb.consumer.controller.TestController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@SpringBootApplication
public class ConsumerApplication {
    private final static ExecutorService cacheExecutor = Executors.newCachedThreadPool();
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(ConsumerApplication.class, args);

        TestController controller = context.getBean(TestController.class);
        controller.run();

    }

}
